extends "../lingbo-3/lingbo-3.gd"


var baseId = ""
var upText1 = "鬼神演舞伤害提高50%"
var upText2 = "战斗开始时获得20层<速攻>"
func _extInit():
	._extInit()
	chaName = "「驱逐」绫波"   #角色的名称
	lv = 4             #等级的设置
	addSkill("挥舞40米斩舰大刀，对周围2格的敌人造成造成[炮击*3]({damage})技能伤害，并使其减少30%护甲，无法驱散或叠加", "鬼神演舞")

func gsyw():
	utils.createSkillTextEff("鬼神演舞", position)
	var chas = getCellChas(cell, 2, 1)
	for i in chas:
		if i.hasBuff("b_ayanami") == null:
			i.addBuff(b_ayanami.new())
		azurHurtChara(i, att.atk*3, sys.HurtType.WEAPON, sys.AtkType.SKILL, "鬼神演舞", false, p4)

class b_ayanami:
	extends "../../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_ayanami"	
		buffName = "鬼神演舞-负面"
		att.defL = -0.3
		dispel = 2

func getSkillEffect(name):
	.getSkillEffect(name)
	if name == "鬼神演舞":
		return att.atk * 3
var p4 = 1
func upgrade():
	.upgrade()
	if upgraded == 1:
		p4 = 1.5

func _onBattleStart():
	._onBattleStart()		
	if upgraded == 2:
		addBuff(buff.b_suGong.new(20))